import Mock, { Random } from 'mockjs';

module.export = [
  Mock.mock(RegExp(`/mock资源渠道` + ".*"), 'get', {
    "data|99": [{
      "label|1": ['抖音-直播盛饭', '视频号-说股有道'],
      "value|+1": 1
    }],
  }),
  Mock.mock(RegExp(`/mock工作台` + ".*"), 'get', {
    "data|4": [{
      "label|1": ['杭州定点财经二分', '定点财经二分', '财经五分', '财经七分'],
      "value|+1": 1
    }],
  }),
  Mock.mock(RegExp(`/mock销售` + ".*"), 'get', {
    "data|108": [{
      "label": '@cname',
      "value|+1": 1
    }],
  }),
  Mock.mock(RegExp(`/mock标签` + ".*"), 'get', {
    "data|5": [{
      "label|+1": ['视频号1', '视频号3', '视频号5', '视频号7', '视频号9'],
      "value|+1": 1
    }],
  }),
  Mock.mock(RegExp(`/mock表格` + ".*"), 'post', {
    "data|10": [{
      _id: '@id',
      face: "@image('64x64,'#f00')",
      nickName: '@ctitle(2,7)',
      remark: '@ctitle(10,20)',
      resourceChannels: '@natural(1,99)',
      addTime: '@dateTime',
      workbench: '@natural(1,4)',
      belongToSales: '@natural(1,108)',
      theLabel: '@range(1,4,2)',
      关注状态: '@boolean',
      是否冒泡: '@boolean',
      isGlobalRepeat: '@boolean',
      关注XX: '@boolean',
    }],
  }),
  Mock.mock(RegExp(`/mock数据统计` + ".*"), 'post', {
    "data|10": [{
      _id: '@id',
      组别: '新单1组',
      name: '@cname',
      realName: '@cname',
      n添加数: '@natural(0,255)',
      n总关注数: '@natural(0,65535)',
      p总关注率: '@float(0, 100, 1, 2) ',
      n24小时之内关注数: '@natural(0,65535)',
      p24小时之内关注率: '@float(0,100,1,2)',
      n24小时之外关注数: '@natural(0,65535)',
      p24小时之外关注率: '@float(0,100,1,2)',
    }],
  }),
  Mock.mock(RegExp(`/mock资源改派` + ".*"), 'get', {
    "data|10": [{
      _id: '@id',
      部门: '新单4组',
      name: '@cname',
      realName: '@cname',
      就职情况: '@boolean',
      lasttime: '@dateTime',
    }],
  }),
]